@import '~@/theme';

* {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC,
    Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
}

body {
  margin: 0;
}

.div {
  font-size: 18px;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background-color: transparent;
  transition: all 200ms ease-out;
  width: 8px;
  margin-left: 0;

  &:hover {
    width: 20px;
    margin-left: 12px;
  }
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.25);
  margin-left: 0;
  border-radius: 4px;
  transition: all 200ms ease-out;

  &:hover {
    background-color: rgba(0, 0, 0, 0.45);
  }
}

.c-primary {
  color: @primary-color !important;
}

.c-info {
  color: @info-color !important;
}

.c-success {
  color: @success-color !important;
}

.c-error {
  color: @error-color !important;
}

.c-highlight {
  color: @highlight-color !important;
}

.c-warning {
  color: @warning-color !important;
}

.c-normal {
  color: @normal-color !important;
}

.c-text {
  color: @text-color !important;
}

.c-text-secondary {
  color: @text-color-secondary !important;
}

.c-disabled {
  color: @disabled-color !important;
}

.bf-container {
  border: 1px solid @border-color-base;
  border-radius: @border-radius-base;

  .bf-content {
    height: auto;
    min-height: 200px;
  }
}

.filed-border {
  border: 1px solid @border-color-base;
  border-radius: @border-radius-base;
}

.pointer {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.ant-table-cell .ant-form-item {
  margin-bottom: 0 !important;
}

.form-page-btn .ant-btn {
  padding: 0.32em 1.35em;
  height: auto;
  letter-spacing: 0.2em;
  font-size: 16px;
  border-radius: 5px;
}

.form-page-btn {
  background-color: #fff;
  position: sticky;
  bottom: 0;
}

.app-error-overlay {
  z-index: 99999999;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 24px;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 6px black;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  min-height: 0;

  pre {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }

  h3 {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    font-size: 1.5em;
  }

  .app-overlay-close {
    flex-shrink: 0;
    text-shadow: none;
    color: red;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-size: 20px;
    line-height: 32px;
    display: inline-block;
    width: 32px;
    text-align: center;
    border-radius: 50%;
    border: 0;
    box-shadow: none;
  }
}

.ant-pagination {
  padding: 10px 15px !important;
  font-size: 11.2px !important;
  color: #666 !important;
}

.select-scroll {
  .ant-select-selector {
    display: flex !important;
    flex-flow: row nowrap !important;
    min-width: 0;
    overflow: auto;

    &::-webkit-scrollbar {
      width: 0;
      height: 0;
    }
  }
}
